<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <canvas id="cvs" width="800" height="600"></canvas>
    <script>
        var cvs = document.getElementById("cvs");
        cvs.width = window.innerWidth;
        cvs.height = window.innerHeight;
        var ctx = cvs.getContext('2d');
        ctx.strokeStyle = '#f00';

        var x = cvs.width / 2;
        var y = cvs.height / 2;
        
        ctx.beginPath();        
        ctx.arc(x, y, 5, 0, Math.PI / 180 * 360);
        ctx.stroke();
        
        
    </script>
</body>
</html>